import request from '@/utils/request'
const serviceName = 'System'

export function getColumns(data) {
  return request({
    url: serviceName + '/Column/GetTableColumns',
    method: 'post',
    data
  })
}

export function saveColumnSort(data) {
  return request({
    url: serviceName + '/Column/SaveTableColumnsSort',
    method: 'post',
    data
  })
}

export function queryTablePage(data) {
  return request({
    url: serviceName + '/Column/QueryTableColumnPage',
    method: 'post',
    data
  })
}

export function getTablePage(Id) {
  return request({
    url: serviceName + '/Column/GetTableColumn?Id=' + Id,
    method: 'get'
  })
}

export function saveTablePage(data) {
  return request({
    url: serviceName + '/Column/SaveTableColumn',
    method: 'post',
    data
  })
}

export function deleteTablePage(data) {
  return request({
    url: serviceName + '/Column/DeleteTableColumn',
    method: 'post',
    data
  })
}

export function queryTenantPower(Id) {
  return request({
    url: serviceName + '/Column/QueryTenantPowerPage?Id=' + Id,
    method: 'get'
  })
}

export function getFormField(data) {
  return request({
    url: serviceName + '/Column/GetFormField',
    method: 'post',
    data
  })
}

export function saveFocusData(data) {
  return request({
    url: serviceName + '/Column/SaveFocusData',
    method: 'post',
    data
  })
}

export function removeFocusData(data) {
  return request({
    url: serviceName + '/Column/RemoveFocusData',
    method: 'post',
    data
  })
}

export function saveDefineColumn(data) {
  return request({
    url: serviceName + '/Column/SaveDefineTableColumn',
    method: 'post',
    data
  })
}

export function resetDefineColumn(data) {
  return request({
    url: serviceName + '/Column/ResetDefineTableColumn',
    method: 'post',
    data
  })
}

export function getRowComments(data) {
  return request({
    url: serviceName + '/Column/GetRowComments',
    method: 'post',
    data
  })
}
export function saveRowComment(data) {
  return request({
    url: serviceName + '/Column/SaveRowComment',
    method: 'post',
    data
  })
}
export function getColumnRemind(data) {
  return request({
    url: serviceName + '/Column/GetRowColumnRemind',
    method: 'post',
    data
  })
}
export function saveColumnRemind(data) {
  return request({
    url: serviceName + '/Column/SaveRowColumnRemind',
    method: 'post',
    data
  })
}

export function removeFocusCondition(data) {
  return request({
    url: serviceName + '/Column/RemoveFocusCondition',
    method: 'post',
    data
  })
}

export function removeComment(data) {
  return request({
    url: serviceName + '/Column/RemoveRowComment',
    method: 'post',
    data
  })
}

export function removeDefineColumn(data) {
  return request({
    url: serviceName + '/Column/RemoveDefineTableColumn',
    method: 'post',
    data
  })
}

export default {
  getColumns,
  saveColumnSort,
  queryTablePage,
  getTablePage,
  saveTablePage,
  deleteTablePage,
  getFormField,
  saveFocusData,
  removeFocusData,
  saveDefineColumn,
  resetDefineColumn,
  getRowComments,
  saveRowComment,
  getColumnRemind,
  saveColumnRemind,
  removeFocusCondition,
  removeComment,
  removeDefineColumn
}
